if DmsConv ~= "" & exists(diz) then address command DmsConv
end
/* .(gz|z|Z) ? */
when (left(buff, 2) == '1f'x || '8b'x) | (left(buff, 2) == '1f'x || '9d'x) then do
address command 'gzip -tv' filename
if RC ~= 0 then exit 10
end
otherwise do
LogEntry 'Unsupported archive format:' file
SendModem CRLF || RED || file 'is not of one of the supported archive formats!' || CRLF || 'Supported formats: *.(lha|lzh|run|zip|gz|z|Z|arj|dms)' || WHITE || CRLF || CRLF
exit FailUnsupported
end
end
if open('dizfile', diz, 'r') then do
SendModem CLEAR || GREEN || 'Found a' diz 'from' file || ':' || WHITE || CRLF || CRLF
address command 'type' diz 'to TECHIO:' || ln
if GetYesNo(ln, CRLF || 'Do you want to keep this? ', 1) then do
if open('descfile', filename || '.desc', 'w') then do
do until eof('dizfile')
line = trim(translate(readln('dizfile'), ' ', '0d'x))
if line ~= "" then do
call writeln 'descfile', trim(left(line, 45))
LogEntry '>' line
end
end
call close 'descfile'
end
end
else LogEntry 'Discarding diz'
call close 'dizfile'
end
call pragma 'd', olddir
address command 'delete' TempDir 'all'
SendModem WHITE || CRLF
exit 0
addpart:
front = arg(1)
rear = arg(2)
char = right(front, 1)
if char ~= "/" & char ~= ":" then return front || "/" || rear